package edu.xlh.travel.controller.user;

import edu.xlh.travel.common.Result;
import edu.xlh.travel.service.TotalScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpSession;

@RequestMapping("/fore_totalScore")
@CrossOrigin
@Controller
public class ForeTotalScoreController {
    @Autowired
    private TotalScoreService totalScoreService;

    @RequestMapping("/getTotalScoreByUserId")
    @ResponseBody
    public Result getTotalScoreByUserId(HttpSession session) {
        return totalScoreService.getTotalScoreByUserId(session);
    }
}
